package com.jrx.anytxn.investor.constant;

/**
 * : 业务参数常量
 *
 * @author haopu.zheng
 * @date 2019/7/24
 **/
public final class TransBizConstant {

    private TransBizConstant() {
    }

    //默认机构号
    public static final String DEFAULT_ORG_ID = "0001";

    //固定账单日标志
    public static final String IS_FIXED_BILLING = "1";

    //账单日取放款日期志x
    public static final String LOAN_DATE = "x";

    //产品规则集类型
    public static final String PRO_MATCH_RULE_TYPE = "ProductRuleSet";//产品匹配规则集类型
    public static final String PRO_STATEMENT_DAY_RULE_TYPE = "BillDateRules";//产品账单日规则集类型
    public static final String PRO_INTEREST_TABLE_ID = "InterestMatchRuleSet";//利息参数表ID规则集类型
    public static final String PRO_WAIVE_INTEREST_TABLE_ID = "PrWaiveInterestMatchRuleSet";//利息参数表ID规则集类型
    public static final String PRO_PAYOFF_TABLE_ID = "LoanPayOffTableMatchRuleSet";//提前结清参数表ID规则集类型
    public static final String PRO_PENALTY_TABLE_ID = "DefaultInterestMatchRuleSet";//罚息参数表ID规则集类型
    public static final String PRO_FEE_TABLE_ID = "LoanFeeTableMatchRuleSet";//费用参数表id规则集类型
    public static final String PRO_PYMT_ALLOC_TABLE_ID = "PymtAllocTableMatchRuleSet";//还款顺序规则集类型
    public static final String PRO_DELQ_TABLE_ID = "DelqTableMatchRuleSet";//延滞参数规则集类型
    public static final String PRO_PRE_PAY_TABLE_ID = "PrepayTableMatchRuleSet";//提前还款手续费规则


    // 出资方参数id
    public static final String PRO_INVESTOR_INTEREST_TABLE_ID = "InvestorInterestMatchRuleSet";//利息参数表ID规则集类型
    public static final String PRO_INVESTOR_PAYOFF_TABLE_ID = "InvestorLoanPayOffTableMatchRuleSet";//提前结清参数表ID规则集类型
    public static final String PRO_INVESTOR_PENALTY_TABLE_ID = "InvestorDefaultInterestMatchRuleSet";//罚息参数表ID规则集类型
    public static final String PRO_INVESTOR_FEE_TABLE_ID = "InvestorLoanFeeTableMatchRuleSet";//费用参数表id规则集类型
    public static final String PRO_INVESTOR_PRE_PAY_TABLE_ID = "InvestorPrepayTableMatchRuleSet";//提前还款手续费规则

    //传票规则集
    public static final String VOUCHER_RULE_SET = "VoucherRuleSet";


    //规则请求key
    public static final String LOAN_RULE_TRANS_CHANNEL = "transactionChannels";//交易渠道
    public static final String LOAN_RULE_CUS_IDENTIFY = "customerIdentification";//客群标志
    public static final String LOAN_RULE_TENOR = "numberOfPeriods";//期数
    public static final String LOAN_RULE_BORROW_DATE = "borrowingDate";//借款日
    public static final String LOAN_RULE_BORROW_MONTH = "borrowingMonth";//借款月份
    public static final String LOAN_RULE_AMORT_METHOD = "amortMethod";//还款方式
    public static final String LOAN_RULE_TRANS_AMOUNT = "transactionAmount";//交易金额
    public static final String LOAN_RULE_TRANS_DATE = "transactionDate";//放款日期
    public static final String LOAN_RULE_PRODUCT_TYPE = "productType";//贷款类型
    public static final String LOAN_RULE_MERCHANT_ID = "merchantId";//商户ID
    public static final String LOAN_RULE_CHANNEL = "channel";//交易渠道


    //规则执行结果取值key
    public static final String VOUCHER_DEBIT_TABLE_TYPE = "debitTableId";//会计核算规则集类型借记结果ID
    public static final String VOUCHER_CREDIT_TABLE_TYPE = "creditTableId";//会计核算规则集类型贷记结果ID
    public static final String LOAN_RULE_RES_KEY = "tableId";//通用规则返回取值key


    //贷款状态
    public static final String LOAN_STATUS_0 = "0"; //新建
    public static final String LOAN_STATUS_1 = "1"; //正常
    public static final String LOAN_STATUS_2 = "2"; //逾期
    public static final String LOAN_STATUS_7 = "7"; //提前结清
    public static final String LOAN_STATUS_8 = "8"; //正常结清
    public static final String LOAN_STATUS_9 = "9"; //取消订单
    public static final String LOAN_STATUS_6 = "6"; //转分期

    //贷款账户相关
    public static final int LOAN_ID_CUSTOMER_PLACE = 2; //贷款账户客户位数
    public static final int LOAN_ID_RANDOM_PLACE = 26; //贷款账户客户位数

    //放款款流水最终状态
    public static final String DISBURSEMENT_LOG_SUM_STATUS_S = "S"; //S 成功
    public static final String DISBURSEMENT_LOG_SUM_STATUS_F = "F"; //F 失败
    public static final String DISBURSEMENT_LOG_SUM_STATUS_D = "D"; // D 待发起放款
    public static final String DISBURSEMENT_LOG_SUM_STATUS_O = "O"; //O 已发起放款，放款状态未知，待查询

    //转账流水最终状态
    public static final String TRANSFER_SUM_STATUS_S = "S"; //S 成功
    public static final String TRANSFER_SUM_STATUS_F = "F"; //F 失败
    public static final String TRANSFER_SUM_STATUS_D = "D"; // D 待发起放款
    public static final String TRANSFER_SUM_STATUS_O = "O"; //O 已发起放款，放款状态未知，待查询


    //订单分期状态
    public static final String LOAN_STAGING_SUM_STATUS_S = "S"; //S 成功
    public static final String LOAN_STAGING_SUM_STATUS_F = "F"; //F 失败
    public static final String LOAN_STAGING_SUM_STATUS_D = "D"; //D 待处理



    //放款加急标志
    public static final String LOAN_PRIORITY_REAL_TIME = "HIGH";//实时
    public static final String LOAN_PRIORITY_BATH = "NORM";//批量

    //交易币种
    public static final String CURRENCY_CNY = "CNY";//人名币
    public static final String CURRENCY_USD = "USD";//美元
    public static final String CURRENCY_HKD = "HKD";//港币

    //放款类型
    public static final String DISBURSE_TYPE_SYSTEM = "SYSTEM";//系统放款
    public static final String DISBURSE_TYPE_MANUAL = "MANUAL";//手工放款

    //各种标志值 （是与否）
    public static final String YES_FLAG = "1";// 标志 是
    public static final String NO_FLAG = "0";// 标志 否

    //各种标志值 （Y与N）
    public static final String Y_FLAG = "Y";// 标志 是
    public static final String N_FLAG = "N";// 标志 否

    //交易账户类型
    public static final String ACCOUNT_TYPE_06 = "06";// 分期/贷款扣账明细账户
    public static final String ACCOUNT_TYPE_03 = "03";//费用交易账户
    public static final String ACCOUNT_TYPE_04 = "04";//利息交易账户
    public static final String ACCOUNT_TYPE_05 = "05";//订单交易账户
    public static final String ACCOUNT_TYPE_11 = "11";//罚息交易账户
    public static final String ACCOUNT_TYPE_12 = "12";//复利交易账户
    public static final String ACCOUNT_TYPE_17 = "17";//贴息利息交易账户


    public static final String ACCOUNT_TYPE_50 = "50";//延滞交易账户

    //交易账户状态
    public static final String ACCOUNT_STATUS_0 = "0";// 新建
    public static final String ACCOUNT_STATUS_1 = "1";//正常
    public static final String ACCOUNT_STATUS_2 = "2";//逾期
    public static final String ACCOUNT_STATUS_7 = "7";//提前结清
    public static final String ACCOUNT_STATUS_8 = "8";//正常结清
    public static final String ACCOUNT_STATUS_9 = "9";//取消
    public static final String ACCOUNT_STATUS_6 = "6";//转分期

    //账户id相关
    public static final int ACCOUNT_ID_CUSTOMER_PLACE = 2;//账户id中客户id位数
    public static final int ACCOUNT_ID_RANDOM_PLACE = 24;//账户id中随机位数

    //初始数值
    public static final Integer ZERO = 0;// 0
    public static final Integer ONE = 1;// 1


    //交易码
    public static final String TXN_CODE_INSTSUM = "L50099";//分期总金额
    public static final String TXN_CODE_INST = "L50000";//分期本金
    public static final String TXN_CODE_INST_INTR = "I50100";//分期利息
    public static final String TXN_CODE_INST_PEN_INTR = "I50101";//罚息
    public static final String TXN_CODE_INST_COMP_INTR = "I50102";//复利
    public static final String TXN_CODE_INST_INTR_TAX = "I50103";//利息税金
    public static final String TXN_CODE_INST_PEN_INTR_TAX = "I50104";//罚息税金
    public static final String TXN_CODE_INST_COMP_INTR_TAX = "I50105";//复利税金
    public static final String TXN_CODE_INST_WAIVE_INTR = "I50108";//分期贴息利息
    public static final String TXN_CODE_INST_WAIVE_INTR_TAX = "I50109";//贴息利息税金
    public static final String TXN_CODE_INST_ONECE_FEE = "F50201";//一次性手续费
    public static final String TXN_CODE_INST_FEE = "F50202";//分期手续费
    public static final String TXN_CODE_INST_PREPAY_FEE = "F50203";//提前还款手续费
    public static final String TXN_CODE_INST_OTHER_FEE = "F50205";//其他手续费
    public static final String TXN_CODE_INST_PAYOFF_FEE = "F50204";//提前结清手续费
    public static final String TXN_CODE_INSTSUM_T = "L51099";//分期总金额调整
    public static final String TXN_CODE_INST_T = "L51000";//分期本金调整
    public static final String TXN_CODE_INST_INTR_T = "I51100";//分期利息调整
    public static final String TXN_CODE_INST_PEN_INTR_T = "I51101";//罚息调整
    public static final String TXN_CODE_INST_COMP_INTR_T = "I51102";//复利调整
    public static final String TXN_CODE_INST_INTR_TAX_T = "I51103";//分期利息税金调整
    public static final String TXN_CODE_INST_PEN_INTR_TAX_T = "I51104";//罚息税金调整
    public static final String TXN_CODE_INST_COMP_INTR_TAX_T = "I51105";//复利税金调整
    public static final String TXN_CODE_INST_ONECE_FEE_T = "F51201";//一次性手续费调整
    public static final String TXN_CODE_INST_FEE_T = "F51202";//分期手续费调整
    public static final String TXN_CODE_INST_PREPAY_FEE_T = "F51203";//提前还款手续费调整
    public static final String TXN_CODE_INST_PAYOFF_FEE_T = "F51204";//提前结清手续费调整
    public static final String TXN_CODE_PAYMENT_DETAIL = "P20000";//08 还款交易
    public static final String TXN_CODE_INST_PYMT = "P20050";//本金还款
    public static final String TXN_CODE_INST_PYMT_INTR = "P20150";//利息还款
    public static final String TXN_CODE_INST_PYMT_PEN_INTR = "P20151";//罚息还款
    public static final String TXN_CODE_INST_PYMT_FEE = "P20252";//分期费用还款
    public static final String TXN_CODE_INST_INTR_ACCU = "I50110";//利息计提
    public static final String TXN_CODE_PEN_INTR_ACCU = "I50111";//罚息计提
    public static final String TXN_CODE_COM_INTR_ACCU = "I50112";//复利计提
    public static final String TXN_CODE_INST_INTR_TAX_ACCU = "I50113";//利息税金计提
    public static final String TXN_CODE_PEN_INTR_TAX_ACCU = "I50114";//罚息税金计提
    public static final String TXN_CODE_COM_INTR_TAX_ACCU = "I50115";//复利税金计提
    public static final String TXN_CODE_INST_WAIVE_INTR_ACCU = "I50118";//贴息利息计提
    public static final String TXN_CODE_INST_WAIVE_INTR_TAX_ACCU = "I50119";//贴息利息税金计提


    public static final String TXN_CODE_INST_INTR_NONACCRUAL_ACCU = "I90110";//表外利息计提
    public static final String TXN_CODE_PEN_INTR_NONACCRUAL_ACCU = "I90111";//表外罚息计提
    public static final String TXN_CODE_COM_INTR_NONACCRUAL_ACCU = "I90112";//表外复利计提
    public static final String TXN_CODE_INST_INTR_TAX_NONACCRUAL_ACCU = "I90113";//表外利息税金计提
    public static final String TXN_CODE_PEN_INTR_TAX_NONACCRUAL_ACCU = "I90114";//表外罚息税金计提
    public static final String TXN_CODE_COM_INTR_TAX_NONACCRUAL_ACCU = "I90115";//表外复利税金计提
    public static final String TXN_CODE_INST_INTR_NONACCRUAL = "I90100";//表外分期利息
    public static final String TXN_CODE_INST_PEN_INTR_NONACCRUAL = "I90101";//表外罚息
    public static final String TXN_CODE_INST_COMP_INTR_NONACCRUAL = "I90102";//表外复利
    public static final String TXN_CODE_INST_INTR_NONACCRUAL_TAX  = "I90103";//表外分期利息税金
    public static final String TXN_CODE_INST_PEN_INTR_NONACCRUAL_TAX = "I90104";//表外罚息税金
    public static final String TXN_CODE_INST_COMP_INTR_NONACCRUAL_TAX  = "I90105";//表外复利税金

    //会计状态
    public static final String TXN_CODE_PRIN_TRAN_NOMAL = "T57000"; //本金转正常
    public static final String TXN_CODE_PRIN_TRAN_OVER = "T57001"; //本金转逾期
    public static final String TXN_CODE_PRIN_TRAN_DEAD = "T57002"; //本金转呆滞
    public static final String TXN_CODE_PRIN_TRAN_BAD = "T57003"; //本金转呆账
    public static final String TXN_CODE_INTR_TRAN_NOMAL = "T57100"; //利息转正常
    public static final String TXN_CODE_INTR_TRAN_OVER = "T57101"; //利息转逾期
    //应计转非应计
    public static final String TXN_CODE_PRIN_TRAN_NON = "T59000"; //本金转非应计
    public static final String TXN_CODE_INTR_TRAN_NON = "T59100"; //已结利息转非应计
    public static final String TXN_CODE_ACCU_INTR_TRAN_NON = "T59110"; //累计利息转非应计
    public static final String TXN_CODE_PENT_INTR_TRAN_NON = "T59101"; //已结罚息转非应计
    public static final String TXN_CODE_ACCU_PENT_INTR_TRAN_NON = "T59111"; //累计罚息转非应计
    public static final String TXN_CODE_COMP_INTR_TRAN_NON = "T59102"; //已结复利转非应计
    public static final String TXN_CODE_COMP_ACCU_INTR_TRAN_NON = "T59112"; //累计复利转非应计
    public static final String TXN_CODE_INTR_TAX_TRAN_NON = "T59103"; //已结利息税金转非应计
    public static final String TXN_CODE_ACCU_INTR_TAX_TRAN_NON = "T59113"; //累计利息税金转非应计
    public static final String TXN_CODE_PENT_INTR_TAX_TRAN_NON = "T59104"; //已结罚息税金转非应计
    public static final String TXN_CODE_ACCU_PENT_INTR_TAX_TRAN_NON = "T59114"; //累计罚息税金转非应计
    public static final String TXN_CODE_COMP_INTR_TAX_TRAN_NON = "T59105"; //已结复利税金转非应计
    public static final String TXN_CODE_COMP_ACCU_INTR_TAX_TRAN_NON = "T59115"; //累计复利税金转非应计
    //非应计转应计
    public static final String TXN_CODE_PRIN_TRAN_INNON = "T58000"; //本金转应计
    public static final String TXN_CODE_INTR_TRAN_INNON = "T58100"; //已结利息转应计
    public static final String TXN_CODE_ACCU_INTR_TRAN_INNON = "T58110"; //累计利息转应计
    public static final String TXN_CODE_PENT_INTR_TRAN_INNON = "T58101"; //已结罚息转应计
    public static final String TXN_CODE_ACCU_PENT_INTR_TRAN_INNON = "T58111"; //累计罚息转应计
    public static final String TXN_CODE_COMP_INTR_TRAN_INNON = "T58102"; //已结复利转应计
    public static final String TXN_CODE_COMP_ACCU_INTR_TRAN_INNON = "T58112"; //累计复利转应计
    public static final String TXN_CODE_INTR_TAX_TRAN_INNON = "T58103"; //已结利息税金转应计
    public static final String TXN_CODE_ACCU_INTR_TAX_TRAN_INNON = "T58113"; //累计利息税金转应计
    public static final String TXN_CODE_PENT_INTR_TAX_TRAN_INNON = "T58104"; //已结罚息税金转应计
    public static final String TXN_CODE_ACCU_PENT_INTR_TAX_TRAN_INNON = "T58114"; //累计罚息税金转应计
    public static final String TXN_CODE_COMP_INTR_TAX_TRAN_INNON = "T58105"; //已结复利税金转应计
    public static final String TXN_CODE_COMP_ACCU_INTR_TAX_TRAN_INNON = "T58115"; //累计复利税金转应计

    public static final String TXN_CODE_INTR_TRAN_OUT_INNON = "T56100"; //已结利息应计转非应计，再转回应计
    public static final String TXN_CODE_PENT_INTR_TRAN_OUT_INNON = "T56101"; //已结罚息应计转非应计，再转回应计
    public static final String TXN_CODE_COMP_INTR_TRAN_OUT_INNON = "T56102"; //已结复利应计转非应计，再转回应计
    public static final String TXN_CODE_INTR_TAX_TRAN_OUT_INNON = "T56103"; //已结利息税金应计转非应计，再转回应计
    public static final String TXN_CODE_PENT_INTR_TAX_TRAN_OUT_INNON = "T56104"; //已结罚息税应计转非应计，再转回转应计
    public static final String TXN_CODE_COMP_INTR_TAX_TRAN_OUT_INNON = "T56105"; //已结复利税金应计转非应计，再转回应计

    //撤销，冲销
    public static final String TXN_CODE_INSTSUM_REVOCATION = "L51098";//订单取消
    public static final String TXN_CODE_INTR_REVOCATION = "I51110";//利息冲销
    public static final String TXN_CODE_PENT_INTR_REVOCATION = "I51111";//罚息冲销
    public static final String TXN_CODE_COMP_INTR_REVOCATION = "I51112";//复利冲销
    public static final String TXN_CODE_INTR_TAX_REVOCATION = "I51113";//利息税金冲销
    public static final String TXN_CODE_PENT_INTR_TAX_REVOCATION = "I51114";//罚息税金冲销
    public static final String TXN_CODE_COMP_INTR_TAX_REVOCATION = "I51115";//复利税金冲销
    public static final String TXN_CODE_WAIVE_INTR_REVOCATION = "I51118";//贴息利息冲销
    public static final String TXN_CODE_WAIVE_INTR_TAX_REVOCATION = "I51119";//贴息利息税金冲销


    //核销
    public static final String TXN_CHARGEOFF_CODE_PRINCIPAL = "T95050";//核销本金
    public static final String TXN_CHARGEOFF_CODE_INTR = "T95150";//核销利息
    public static final String TXN_CHARGEOFF_CODE_PEN_INTR = "T95151";//核销罚息
    public static final String TXN_CHARGEOFF_CODE_COMP_INTR = "T95152";//核销复利
    public static final String TXN_CHARGEOFF_CODE_INTR_TAX = "T95153";//核销利息税金
    public static final String TXN_CHARGEOFF_CODE_PEN_INTR_TAX = "T95154";//核销罚息税金
    public static final String TXN_CHARGEOFF_CODE_COMP_INTR_TAX = "T95155";//核销复利税金
    public static final String TXN_CHARGEOFF_CODE_FEE = "T95252";//核销费用

    //核销
    public static final String TXN_CHARGEOFF_PAY_CODE_PRINCIPAL = "T96050";//核销贷款单期本金还款
    public static final String TXN_CHARGEOFF_PAY_CODE_INTR = "T96150";//核销利息还款
    public static final String TXN_CHARGEOFF_PAY_CODE_PEN_INTR = "T96151";//核销罚息还款
    public static final String TXN_CHARGEOFF_PAY_CODE_COMP_INTR = "T96152";//核销复利还款
    public static final String TXN_CHARGEOFF_PAY_CODE_INTR_TAX = "T96153";//登记核销利息税金
    public static final String TXN_CHARGEOFF_PAY_CODE_PEN_INTR_TAX = "T96154";//登记核销罚息税金
    public static final String TXN_CHARGEOFF_PAY_CODE_COMP_INTR_TAX = "T96155";//登记核销复利税金
    public static final String TXN_CHARGEOFF_PAY_CODE_FEE = "T96252";//核销分期手续费还款

    //账单分期
    public static final String TXN_CODE_STAGING_PRINCIPAL = "P29050";//转分期本金还款
    public static final String TXN_CODE_STAGING_INTR = "P29150";//转分期利息还款
    public static final String TXN_CODE_STAGING_PEN_INTR = "P29151";//转分期罚息还款
    public static final String TXN_CODE_STAGING_COMP_INTR = "P29152";//转分期复利还款
    public static final String TXN_CODE_STAGING_ONECE_FEE= "P29251";//转分期一次性手续费还款
    public static final String TXN_CODE_STAGING_FEE= "P29252";//转分期分期手续费还款

    //减值计提
    public static final String TXN_CODE_CLASSIFY1_IMPAIRMENT = "T57011";//关注类减值计提
    public static final String TXN_CODE_CLASSIFY2_IMPAIRMENT = "T57012";//次级类减值计提
    public static final String TXN_CODE_CLASSIFY3_IMPAIRMENT = "T57013";//可疑类减值计提
    public static final String TXN_CODE_CLASSIFY4_IMPAIRMENT = "T57014";//损失类减值计提
    public static final String TXN_CODE_CLASSIFY1_IMPAIRMENT_REVOCATION = "T57021";//关注类减值计提冲销
    public static final String TXN_CODE_CLASSIFY2_IMPAIRMENT_REVOCATION = "T57022";//次级类减值计提冲销
    public static final String TXN_CODE_CLASSIFY3_IMPAIRMENT_REVOCATION = "T57023";//可疑类减值计提冲销
    public static final String TXN_CODE_CLASSIFY4_IMPAIRMENT_REVOCATION = "T57024";//损失类减值计提冲销

    //联合贷轧差
    public static final String TXN_CODE_OFFSET_INTR_FEE = "F50300";//利息轧差
    public static final String TXN_CODE_OFFSET_PENT_FEE = "F50301";//罚息轧差
    public static final String TXN_CODE_OFFSET_COMP_FEE = "F50302";//复利轧差
    public static final String TXN_CODE_OFFSET_FEE_FEE = "F50303";//费用轧差




    //进位条件
    public static final String CARRY_COND_1 = "1"; //四舍五入
    public static final String CARRY_COND_2 = "2"; //进位
    public static final String CARRY_COND_3 = "3"; //截位

    //最小间隔日期
    public static final int MIN_INTERVAL_DAYS = 15;

    //罚息起息日
    public static final String PENALTY_VALUE_DATE_PAYMENT_DAY = "1";//1:还款日起息
    public static final String PENALTY_VALUE_DATE_GRACE_DAY = "0";//0:宽限日起息

    //宽限期计算方式
    public static final String GRACE_OPTION_BY_TERM = "1";//按期计算  每期单独计算宽限期
    public static final String GRACE_OPTION_BY_LOAN = "2";//按订单计算 订单级宽限期，若往期处于逾期状态，则当期没有宽限期



    //分期本金收取方式
    public static final String PRIN_CHARGE_OPTION_EPEI = "01"; //分期付款（等本等息）
    public static final String PRIN_CHARGE_OPTION_EPI = "02"; //等额本息
    public static final String PRIN_CHARGE_OPTION_EP = "03"; //等额本金
    public static final String PRIN_CHARGE_OPTION_MONTHLY_INTPAY = "06"; //按期付息，到期还本
    public static final String PRIN_CHARGE_OPTION_MI_YP = "08"; //按月付息，按年还本
    public static final String PRIN_CHARGE_OPTION_INTPAY = "09"; //随见随还 利随本清

    //费用计算方式
    public static final String FEE_CALC_METHOD_0 = "0"; //剩余本金计算  0
    public static final String FEE_CALC_METHOD_1 = "1"; //全款金额计算  1
    public static final String FEE_CALC_METHOD_2 = "2"; //每期本金计算 2


    //分期费用收取方式
    public static final String FEE_CHARGE_OPTION_AVERAGE = "0"; //每期平均收取  ?
    public static final String FEE_CHARGE_OPTION_FIRST_ALL = "1"; //首期全部收取  ?
    public static final String FEE_CHARGE_OPTION_END_ALL = "2"; //尾期全部收取  ?

    //分期费用收取方式
    public static final String FEE_CHARGE_FIXED_OPTION_NONE = "0"; //按比例

    //还款计划状态
    public static final String LOAN_PLAN_STATUS_0 = "0";//未抛账
    public static final String LOAN_PLAN_STATUS_1 = "1";//正常
    public static final String LOAN_PLAN_STATUS_2 = "2";//逾期
    public static final String LOAN_PLAN_STATUS_7 = "7";//提前结清
    public static final String LOAN_PLAN_STATUS_8 = "8";//正常结清
    public static final String LOAN_PLAN_STATUS_9 = "9";//取消
    public static final String LOAN_PLAN_STATUS_6 = "6";//账单分期

    //初始版本号
    public static final Integer INIT_RECORD_VERSION_NUMBER = 1;

    //批次号附加码
    public static final String BATCH_NUMBER = "01";

    //是否转列
    public static final String TRANSFER_FLAG_0 = "0";//不转列
    public static final String TRANSFER_FLAG_1 = "1";//转列
    public static final String TRANSFER_FLAG_2 = "2";//整笔转逾期（应计/非应计）

    //转列方式
    public static final String TRANSFER_METHOD_0 = "0";//发生额法
    public static final String TRANSFER_METHOD_1 = "1";//余额法
    public static final String TRANSFER_METHOD_2 = "2";//标准法
    public static final String TRANSFER_METHOD_3 = "3";//当期金额转列法

    //会计状态
    public static final String ACCOUNTING_PHASE_0 = "0"; //正常
    public static final String ACCOUNTING_PHASE_1 = "1"; //逾期
    public static final String ACCOUNTING_PHASE_2 = "2"; //呆滞
    public static final String
            ACCOUNTING_PHASE_3 = "3"; //呆帐


    //应计/非应计状态
    public static final String NON_ACCRUALS_FLA_0 = "0"; //0-应计
    public static final String NON_ACCRUALS_FLA_1 = "1"; //1-非应计
    public static final String NON_ACCRUALS_FLA_A = "A"; //0-应计
    public static final String NON_ACCRUALS_FLA_N = "N"; //1-非应计


    //五级分类
    public static final String LOAN_CLASSIFY_0 = "0"; // 0 = 正常
    public static final String LOAN_CLASSIFY_1 = "1"; //1 = 关注
    public static final String LOAN_CLASSIFY_2 = "2"; //2 = 次级
    public static final String LOAN_CLASSIFY_3 = "3"; //3 = 可疑
    public static final String LOAN_CLASSIFY_4 = "4"; //4 = 损失

    //累计账户状态
    public static final String INTEREST_ACCRUAL_STATUS_0 = "0"; //新建
    public static final String INTEREST_ACCRUAL_STATUS_1 = "1"; //正常
    public static final String INTEREST_ACCRUAL_STATUS_2 = "2"; //已停止计息
    public static final String INTEREST_ACCRUAL_STATUS_8 = "8"; //已完成计息
    public static final String INTEREST_ACCRUAL_STATUS_9 = "9"; //取消

    //累计账户类型
    public static final String INTEREST_ACCRUAL_TYPE_66 = "66"; // 利息累计账户
    public static final String INTEREST_ACCRUAL_TYPE_10 = "10"; // 罚息累计账户
    public static final String INTEREST_ACCRUAL_TYPE_20 = "20"; // 复利累计账户
    public static final String INTEREST_ACCRUAL_TYPE_70 = "70"; // 贴息利息累计账户


    //停止累计息标志
    public static final String STOP_ACCRU_FLAG_0 = "0";//0=正常计息
    public static final String STOP_ACCRU_FLAG_1 = "1";//1=停止计息

    //交易账户计费标志
    public static final String WAIVE_FEE_FLAG_0 = "0";//0=停止计费
    public static final String WAIVE_FEE_FLAG_1 = "1";//1=正常计费

    //交易账户计息标志
    public static final String WAIVE_INTEREST_FLAG_0 = "0";//0=停止计息
    public static final String WAIVE_INTEREST_FLAG_1 = "1";//1=正常计息

    //是否核销
    public static final String CHARGOFF_FLAG_0 = "0";//0-未核销
    public static final String CHARGOFF_FLAG_1 = "1";//1-已核销
    //是否核销
    public static final String COMPENSATORY_FLAG_0 = "0";//0-未代偿
    public static final String COMPENSATORY_FLAG_1 = "1";//1-已代偿

    //总账流水相关
    public static final String GL_INTERFACE_TYPE = "1";//总账流水类别 1 表内业务
    public static final String GL_INTERFACE_SOURCE = "CLS";//总账流水数据源
    public static final int GL_FLOW_NO_RANDOM = 32;//总账流水数据源

    //系统操作员
    public static final String SYS_OPRATE = "SYSTEM";


    //放款状态
    public static final String DISBURSEMENT_STATUS_SUCCESS = "00";//成功
    public static final String DISBURSEMENT_STATUS_ERROR = "02";//失败
    public static final String DISBURSEMENT_STATUS_AWAIT = "03";//待放款
    public static final String DISBURSEMENT_STATUS_UNKNOWN = "01";//未知
    public static final String DISBURSEMENT_STATUS_ABOMALY = "04";//异常


    //还款类型
    public static final String REPAYMENT_TYPE_PAY = "pay"; //正常还款
    public static final String REPAYMENT_TYPE_PREPAY = "prepay"; //提前还款
    public static final String REPAYMENT_TYPE_PREPAY_CURR = "prepayCurr"; //提前还当期
    public static final String REPAYMENT_TYPE_PRETERMINTION = "pretermination"; //提前结清
    public static final String REPAYMENT_TYPE_OVERDUE = "overdue"; //逾期还款
    public static final String REPAYMENT_TYPE_AUTO = "autoPymt"; //自动扣款
    public static final String REPAYMENT_TYPE_CMPS = "cmpspay"; //代偿
    public static final String REPAYMENT_TYPE_CRT = "crtpay"; //回购
    public static final String REPAYMENT_TYPE_STAGING = "loanStaging"; //账单分期
    public static final String REPAYMENT_TYPE_BILLOVERDUEPAY = "billOverduePay"; //账单逾期还款
    public static final String REPAYMENT_TYPE_BILLPAY = "billPay"; //账单正常还款
    public static final String REPAYMENT_TYPE_BILLPREPAYCURR = "billPrepayCurr"; //账单提前还当期
    public static final String REPAYMENT_TYPE_WAIVEAUTO= "waiveAutoPymt"; //贴息自动扣款
    public static final String REPAYMENT_TYPE_PAY_TERM= "payTerm"; //指定期次还款





    //短信类型
    public static final String SMS_TYPE_LOAN = "loan";//放款短信
    public static final String SMS_TYPE_PAY = "pay";//还款短信
    public static final String SMS_TYPE_PREPAY = "prepay";//提前还款短信
    public static final String SMS_TYPE_PREPAY_CURR = "prepayCurr";//提前还档期短信
    public static final String SMS_TYPE_PRETERMINTION = "pretermination";//提前结清短信
    public static final String SMS_TYPE_OVERDUE= "overdue";//逾期还款短信
    public static final String SMS_TYPE_AUTO_PYMT= "autoPymt";//自动扣款短信
    public static final String SMS_TYPE_PAYREMINDER= "payReminder";//还款提醒短信

    //还款类型名称
    public static final String REPAYMENT_TYPE_PAY_NAME = "正常还款";
    public static final String REPAYMENT_TYPE_PREPAY_NAME = "提前还款";
    public static final String REPAYMENT_TYPE_PREPAY_CURR_NAME = "提前还当期";
    public static final String REPAYMENT_TYPE_PRETERMINTION_NAME = "提前结清";
    public static final String REPAYMENT_TYPE_OVERDUE_NAME = "逾期还款";
    public static final String REPAYMENT_TYPE_AUTO_CUST_NAME = "按客户自动扣款"; //自动扣款
    public static final String REPAYMENT_TYPE_AUTO_ORDER_NAME = "按订单自动扣款"; //自动扣款
    public static final String REPAYMENT_TYPE_STAGING_NAME = "账单分期";
    public static final String REPAYMENT_TYPE_BILLOVERDUEPAY_NAME = "账单逾期还款";
    public static final String REPAYMENT_TYPE_BILLPAY_NAME = "账单正常还款";
    public static final String REPAYMENT_TYPE_BILLPREPAYCURR_NAME= "账单提前还当期";
    public static final String REPAYMENT_TYPE_WAIVEAUTO_NAME= "贴息自动扣款";
    public static final String REPAYMENT_TYPE_CMPS_NAME= "代偿";
    public static final String REPAYMENT_TYPE_CRT_NAME= "回购";


    //提前结清费用/利息收取标记
    public static final String ADVANCE_SETTLE_FEE_METHOD_0 = "0"; //不收取
    public static final String ADVANCE_SETTLE_FEE_METHOD_1 = "1"; //按所有剩余期数收取
    public static final String ADVANCE_SETTLE_FEE_METHOD_2 = "2"; //按剩余期数中X期收取

    //提前结清费用收取方式
    public static final String ADVANCE_SETTLE_FEE_CHARGE_OPTION_0 = "0"; //按比例收取
    public static final String ADVANCE_SETTLE_FEE_CHARGE_OPTION_1 = "1"; //固定金额收取


    //还款流水号相关
    public static final String PAYMENT_LOG_SEQ_PREFIX = "PL"; //还款流水前缀
    public static final int PAYMENT_LOG_SEQ_RADOM_LENGTH = 30; //还款流水随机数位数

    //还款流水最终状态
    public static final String PAYMENT_LOG_SUM_STATUS_S = "S"; //S 成功
    public static final String PAYMENT_LOG_SUM_STATUS_F = "F"; //F 失败
    public static final String PAYMENT_LOG_SUM_STATUS_T = "T"; //T 扣款成功，待分配
    public static final String PAYMENT_LOG_SUM_STATUS_D = "D"; // D 待发起扣款
    public static final String PAYMENT_LOG_SUM_STATUS_O = "O"; //O 已发起扣款，扣款状态未知，待查询
    public static final String PAYMENT_LOG_SUM_STATUS_P = "P"; //O 处理中 api接口调用返回

    //还款状态查询返回码
    public static final String PAYMENT_LOG_QUERY_STATUS_0 = "0"; //S 还款完成
    public static final String PAYMENT_LOG_QUERY_STATUS_2 = "2"; //F 失败
    public static final String PAYMENT_LOG_QUERY_STATUS_1 = "1"; //T D O还款中

    //放款流水表的取消标志
    public static final String CANCLE_STATUS_0 = "0";//否
    public static final String CANCLE_STATUS_1 = "1"; //是

    //扣款类型
    public static final String PAYMENT_LOG_CHARGE_TYPE_0 = "0"; //按订单扣款
    public static final String PAYMENT_LOG_CHARGE_TYPE_1 = "1"; //按客户扣款

    //扣款类型
    public static final String PAYMENT_LOG_CHARGE_TYPE_O = "O"; //按订单扣款
    public static final String PAYMENT_LOG_CHARGE_TYPE_C = "C"; //按客户扣款

    //还款分配类型
    public static final String PAYMENT_ALLOCATION_TYPE_08 = "08"; //还款交易账户
    public static final String PAYMENT_ALLOCATION_TYPE_09 = "09"; //还款交易子交易账户


    //计息基础
    public static final String ACCRUAL_BASIC_0 = "0";//0 = 剩余本金
    public static final String ACCRUAL_BASIC_1 = "1";//1 = 贷款本金

    //罚息计息基础
    public static final String PENALTY_ACCRUAL_BASIC_0 = "0";//0:逾期本金（单利）
    public static final String PENALTY_ACCRUAL_BASIC_1 = "1";//1:逾期本金+利息（复利）

    //借贷标志规则类型
    public static final String VOUCHER_CREDIT_RULE_SET = "VoucherCreditRuleSet";//会计分录拆分规则的贷记标志
    public static final String VOUCHER_DEBIT_RULE_SET = "VoucherDebitRuleSet";//会计分录拆分规则的借记标志

    //传票来源
    public static final String SRC_C = "C";//核心账务组件
    public static final String SRC_A = "A";//核算组件

    //借贷标志
    public static final String SIGN_C = "C";//贷方余额
    public static final String SIGN_D = "D";// 借方余额

    //传票类型
    public static final String TYPE_G = "G";//更新科目总账
    public static final String TYPE_I = "I";//更新内部户明细账

    //贷款批扣表状态
    public static final String AUTO_PAYMENT_STATUS_0 = "0";//待扣款
    public static final String AUTO_PAYMENT_STATUS_2 = "2";//扣款成功

    //还款冲减顺序
    public static final String PAYMENT_PRECEDENCE_0 = "0";//按期优先-横冲
    public static final String PAYMENT_PRECEDENCE_1 = "1";//按余额优先-竖冲

    //差错类型
    public static final String MIS_TYPE_0 = "0";//差错类型-放款
    public static final String MIS_TYPE_1 = "1";//差错类型-还款
    public static final String MIS_TYPE_2 = "2";//差错类型-账单分期
    public static final String MIS_TYPE_3 = "3";//差错类型-贴息还款
    public static final String MIS_TYPE_4 = "4";//差错类型-第三方还款

    //差错类型
    public static final String MIS_STATUS_0 = "0";//差错状态-未处理
    public static final String MIS_STATUS_1 = "1";//差错状态-已处理

    //各种状态（正常／失效）
    public static final String STATUS_0 = "0";//正常
    public static final String STATUS_1 = "1";//失效

    //表主键生成ID
    public static final String AM_LOAN_ID = "AmLoanMainInfo";//贷款订单
    public static final String AM_LOAN_ACCOUNT_ID = "AmLoanAccountMainInfo";//贷款订单
    public static final String AM_REPAYMENT_PLAN_ID = "AmRepaymentPlanInfo";//还款计划
    public static final String AM_WAIVE_REPAYMENT_PLAN_ID = "AmWaiveRepaymentPlanInfo";//贴息还款计划
    public static final String AM_ACCOUNT_ID = "AmAccountMainInfo";//交易账户
    public static final String AM_INTEREST_ACCRUAL_INFO_ID = "AmInterestAccrualInfo";//累计账户
    public static final String AM_DELINQUENCY_INFO_ID = "AmDelinquencyInfo";//延滞
    public static final String TL_DISBURSEMENT_ID = "TlDisbursementLog";//放款流水表
    public static final String TL_GL_INTERFACE_ID = "TlGlInterfaceInfo";//总账流水
    public static final String TL_TRANSACTION_INFO_ID = "TlTransactionInfo";//交易信息
    public static final String TL_INTEREST_ACCRUAL_LOG_ID = "TlInterestAccrualLog";//利息计提日志
    public static final String TL_MISTAKE_LOG_ID = "TlMistakeLog";//差错处理
    public static final String TL_PAYMENT_ALLOCATION_LOG_ID = "TlPaymentAllocationLog";//还款分配
    public static final String TL_PATMENT_LOG_ID = "TlPaymentLog";//还款流水
    public static final String TL_PAYMENT_MAPPING_LOG_ID = "TlPaymentMapping";//还款流水与定点杆映射
    public static final String BT_AUTO_PAYMENT_LIST_ID = "BtAutoPaymentList";//批扣信息
    public static final String BT_BATCH_STATUS_ID = "BtBatchStatusId";//批次状态
    public static final String BT_DELQ_LIST_ID = "BtDelqList";//延滞
    public static final String BT_ACCOUNTING_TRANSFER_LIST_ID = "BtAccountingTransferList";//
    public static final String TL_SMS_LOG_ID="TlSmsLog";
    public static final String TL_CHARGEOFF_INFO_ID="TlChargeoffInfo";//核销订单表
    public static final String TL_COLLCTION_LOAN_LIST_ID="TlCollectionLoanList";//催收准备表
    public static final String BT_GUARANTEE_LIST_ID = "BtGuaranteeList";//代偿回购准备表
    public static final String TL_LOAN_STAGING_MAPPING = "TlLoanStagingMapping";//账单分期关联关系表
    public static final String TL_WAIVE_PATMENT_LOG_ID = "TlWaivePaymentLog";//还款流水
    public static final String TL_WAIVE_PAYMENT_MAPPING_LOG_ID = "TlWaivePaymentMapping";//还款流水与定点杆映射
    public static final String TL_THIRD_PARTY_PAYMENT_ID = "TlThirdPartyPayment";//三方还款信息
    public static final String AM_LOAN_MAIN_INVESTOR_INFO = "AmLoanMainInvestorInfo";//贷款信息表（出资方）
    public static final String AM_LOAN_ACCOUNT_INVESTOR_INFO = "AmLoanAccountInvestorInfo";//贷款账户表（出资方）
    public static final String AM_REPAYMENT_PLAN_INVERSTOR_INFO = "AmRepaymentPlanInvestorInfo";//还款计划表（出资方）
    public static final String AM_ACCOUNT_MAIN_INVESTOR_INFO = "AmAccountMainInvestorInfo";//账户信息表(出资方)
    public static final String AM_INTEREST_ACCRUAL_INVESTOR_INFO = "AmInterestAccrualInvestorInfo";//累计账户表(出资方)
    public static final String TL_GL_INTERFACE_INVESTOR_INFO = "TlGlInterfaceInvestorInfo";//出资方总账流水表
    public static final String TL_INVESTOR_INTEREST_ACCRUAL_LOG = "TlInvestorInterestAccrualLog";//出资方利息计提日志表
    public static final String AM_DELINQUENCY_INVESTOR_INFO = "AmDelinquencyInvestorInfo";//延滞信息表(出资方)
    public static final String BT_INVESTOR_DELQ_LIST = "BtInvestorDelqList";//延滞信息表(出资方)
    public static final String TL_PAYMENT_ALLOCATION_INVESTOR_LOG_ID = "TlPaymentAllocationInvestorLog";//还款分配
    public static final String BT_INVESTOR_ACCOUNTING_TRANSFER_LIST_ID = "BtInvestorAccountingTransferList";//
    public static final String TL_PAYMENT_INVESTOR_MAPPING = "TlPaymentInvestorMapping";//
    public static final String TL_PAYMENT_INVESTOR_LOG = "TlPaymentInvestorLog";//
    public static final String TL_FUND_TRANSFER_LOG = "TlFundTransferLog";//
    public static final String TL_FUND_TRANSFER_DETAIL = "TlFundTransferDetail";//
    public static final String TL_INVESTOR_LOAN_CHANGE = "TlInvestorLoanChange";//
    public static final String TL_CUSTOMER_INVESTOR_LIMIT = "TlCustomerInvestorLimit";// 客户出资方授信额度
    public static final String TL_INVESTOR_LIMIT_APPROVE_LOG = "TlInvestorLimitApproveLog";// 客户出资方授信审批记录表
    public static final String TL_FUND_RESTRAINT_LOG = "TlFundRestraintLog";// 资金限制流水
    public static final String TL_INVESTOR_LOAN_APPROVE_LOG = "TlInvestorLoanApproveLog";// 放款出资方审批记录表
    public static final String TL_FUND_ROUTE_LOG = "TlFundRouteLog";// 放款资金源路由记录表









    //还款redis锁
    public static final String PAYMENT_REDIS_LOCK = "TXN_PAYMENT_TENANT_%s_CUSTOMER_%s_CHANNEL_%s"; //还款redis锁 根据客户及起到
    public static final Long PAYMENT_REDIS_LOCK_WAITE_TIME = 60L; //还款锁等待时间
    public static final Long PAYMENT_REDIS_LOCK_LESS_TIME = 60L; //锁过期时间

    //贷款redis锁
    public static final String LOAN_REDIS_LOCK = "TXN_LOAN_TENANT_%s_USER_%s_CHANNEL_%s"; //贷款redis锁 根据客户及起到
    public static final Long LOAN_REDIS_LOCK_WAITE_TIME = 60L; //还款锁等待时间
    public static final Long LOAN_REDIS_LOCK_LESS_TIME = 60L; //锁过期时间
    public static final String INVESTOR_REDIS_LOCK = "TXN_INVESTOR_TENANT_%s_CUST_%s_LOAN_%s"; //联合贷还款redis锁 根据客户及起到


    /**
     * 交易表相关
     */

    /* txn_number 随机位数 */
    public static final int TXN_NUMBER_RANDOM_PLACE = 29;//txn_number 随机位数

    /* 冲正标识 */
    public static final String TRANSCATION_REVERSAL_FLAG_0 = "0";//0非冲正交易
    public static final String TRANSCATION_REVERSAL_FLAG_1 = "1";//1冲正交易

    public static final String GENERAL_LEDGER_FLAG_0 = "0";//生成GL 流水
    public static final String GENERAL_LEDGER_FLAG_1 = "1";//不生成GL流水

    /**
     * 贷款要素相关
     */
    public static final String PRODUCT_AMORT_METHOD_SPLIT = ",";//产品还款方式分隔符
    public static final String AMORT_METHOD_TYPE = "CHARGEOPTION";//还款方式类型ID

    /**
     * 贷款产品期数单位
     */
    public static final String LOAN_DURATION_MONTH = "0";//月
    public static final String LOAN_DURATION_WEEK = "2";//周
    public static final String LOAN_DURATION_DAY = "3";//天
    public static final String LOAN_DURATION_BILL = "4";//账单

    /**
     * 批次执行状态
     */
    public static final String BATCH_SATTUS_0 = "0";//待执行
    public static final String BATCH_SATTUS_1 = "1";//执行中
    public static final String BATCH_SATTUS_2 = "2";//执行完成

    /**
     * 批次job名称
     */
    public static final String AUTO_PAYMENT = "autoPayment";

    /**
     * 网关接口成功返回
     */
    public static final int GATEWAY_SUC = 1000;

    /**
     * 网关接口成功返回
     */
    public static final String GATEWAY_DEAL_SUC = "S";
    public static final String GATEWAY_DEAL_FAIL = "F";
    public static final String GATEWAY_DEAL_UNKONWN = "D";

    /**
     * 短信发送状态
     */
    public static final String SMS_SEND_STATUS_SUC = "S";//成功
    public static final String SMS_SEND_STATUS_FAIL = "F";//失败
    public static final String SMS_SEND_STATUS_D = "D";//处理中

    /**
     * 核销状态
     */
    public static final String CHARGEOFF_STATUS_SUC = "S";//成功
    public static final String CHARGEOFF_STATUS_FAIL = "F";//失败
    public static final String CHARGEOFF_STATUS_D = "D";//处理中

    /**
     * 短信MQ队列
     */
    public static final String MQ_SMS_TOPIC = "ANYTXN_MQ_SMS_TOPIC";

    public static final String MQ_SMS_GROUP = "ANYTXN_MQ_SMS_GROUP";

    /**
     * 借款埋点信息MQ队列
     */
    public static final String MQ_BURIED_LOAN_TOPIC = "ANYTXN_MQ_BURIED_LOAN_TOPIC";

    public static final String MQ_BURIED_LOAN_GROUP = "ANYTXN_MQ_BURIED_LOAN_GROUP";

    /**
     * 还款埋点信息MQ队列
     */
    public static final String MQ_BURIED_REPAY_TOPIC = "ANYTXN_MQ_BURIED_REPAY_TOPIC";

    public static final String MQ_BURIED_REPAY_GROUP = "ANYTXN_MQ_BURIED_REPAY_GROUP";

    /**
     * 合作方授信MQ队列
     */
    public static final String MQ_INVESTOR_CREDIT_TOPIC = "ANYTXN_MQ_INVESTOR_CREDIT_TOPIC";

    public static final String MQ_INVESTOR_CREDIT_GROUP = "ANYTXN_MQ_INVESTOR_CREDIT_GROUP";


    /**
     * 网关接口交易类型
     */
    public static final String GATEWAY_BIZ_TYPE_01 = "01";//单笔代付
    public static final String GATEWAY_BIZ_TYPE_02 = "02";//单笔代收

    public static final String GATEWAY_SERVICE_ID = "txn";

    /**
     * 系统参数key
     */
    public static final String INNER_BANK_CARD = "inner_bank_card";
    public static final String INNER_BANK_ID = "inner_bank_id";
    public static final String INNER_BANK_NANE = "inner_bank_name";
    public static final String LOAN_PRIME_RATE = "loan_prime_rate";
    public static final String THIRD_ACCT_NO = "third_acct_no";

    //手工交易查询类型
    public static final String MT_QUERY_TYPE_1 = "1"; //手机号
    public static final String MT_QUERY_TYPE_0 = "0"; //证件号
    public static final String MT_QUERY_TYPE_2 = "2"; //订单号
    /**
     * 价税分离开关
     */
    public static final String TAX_FLAG_0 = "0";//单笔代付
    public static final String TAX_FLAG_1 = "1";//单笔代收
    /**
     * 文件分隔符
     */
    public static final String separator = "|@|";

    //手工交易调整类型
    public static final String MT_ADJUST_TYPE_FEE = "1"; //费用调整
    public static final String MT_ADJUST_TYPE_INTEREST = "2"; //利息调整
    public static final String MT_ADJUST_TYPE_PENALTY = "3"; //罚息调整
    public static final String MT_ADJUST_TYPE_COMPOUND = "4"; //复利调整

    //回购方式
    public static final String BAL_TRANS_MOTHOD_CONTINUE = "0";//连续逾期期数
    public static final String BAL_TRANS_MOTHOD_CMPS = "1";//连续代偿次数
    public static final String BAL_TRANS_MOTHOD_TOTAL_CONTINUE = "2";//总逾期期数
    public static final String BAL_TRANS_MOTHOD_TOTAL_CMPS = "3";//总代偿期数
    public static final String BAL_TRANS_MOTHOD_TOTAL_CON = "4";//连续逾期或累计逾期期数
    public static final String BAL_TRANS_MOTHOD_TOTAL_CON_CMPS = "5";//连续代偿或累计代偿期数
    public static final String BAL_TRANS_MOTHOD_DAY = "6";//逾期天数

    //贷款类型
    public static final String LOAN_TYPE_1 = "1";//现金贷
    public static final String LOAN_TYPE_2 = "2";//消费分期
    public static final String LOAN_TYPE_3 = "3";//账单分期
    public static final String LOAN_TYPE_4 = "4";//信用付
    public static final String LOAN_TYPE_7 = "7";//交易分期



    public static final String LIABILITY_FLAG_00 = "00";//客户
    public static final String LIABILITY_FLAG_03 = "03";//资金方

    public static final String INTEREST_DISCOUNT_FLAG_Y = "Y";//支持
    public static final String INTEREST_DISCOUNT_FLAG_N = "N";//支持

    //还款日类型
    public static final String PAYMENT_DATE_TYPE_1 = "1";//账单日规则
    public static final String PAYMENT_DATE_TYPE_2 = "2";//上送还款日
    public static final String PAYMENT_DATE_TYPE_3 = "3";//产品期数配置

    //是否支持当天借当天还
    public static final String LOAN_DAY_PAY_FLAG_0 = "0";//否
    public static final String LOAN_DAY_PAY_FLAG_1 = "1";//是

    //卡类型
    public static final String CARD_TYPE_0 = "0";//0 本行二类户
    public static final String CARD_TYPE_1 = "1";//1 = 他行借记卡
    public static final String CARD_TYPE_2 = "2";//2 = 他行贷记卡

    //账单月份状态
    public static final String MONTH_STATUS_0 = "0";//当期
    public static final String MONTH_STATUS_1 = "1";//未到期
    public static final String MONTH_STATUS_2 = "2";//逾期
    public static final String MONTH_STATUS_3 = "3";//结清

    //证件类型
    public static final String ID_TYPE_01 = "B01";//身份证

    //三方还款状态
    public static final String THIRD_PARTY_STATUS_P = "P";//处理中
    public static final String THIRD_PARTY_STATUS_S = "S";//成功
    public static final String THIRD_PARTY_STATUS_F = "F";//失败
    public static final String THIRD_PARTY_STATUS_T = "T";//待分配
    //减值计提开关
    public static final String IMPAIRMENT_FLAG_0 = "0";//开
    public static final String IMPAIRMENT_FLAG_1 = "1";//关

    //减值计提频率
    public static final String IMPAIRMENT_FREQUENCY_0 = "0";//日
    public static final String IMPAIRMENT_FREQUENCY_1 = "1";//月
    public static final String IMPAIRMENT_FREQUENCY_2 = "2";//季
    public static final String IMPAIRMENT_FREQUENCY_3 = "3";//年

    public static final String MONTH_OF_12 = "12";//12月
    public static final String DAY_OF_31 = "31";//31日

    //账户类型
    public static final String PAYEE_ACCT_TYPE_0 = "0";//个人账户
    public static final String PAYEE_ACCT_TYPE_1 = "1";//对公账户

    //是否属于轧差方
    public static final String OFFSET_0 ="0";//非轧差方
    public static final String OFFSET_1 ="1";//轧差方

    public static final String DEFAULT_INVESTOR_ID ="000001";//本行出资方id

    //路由状态
    public static final String ROUTE_STATUS_S ="S";//成功
    public static final String ROUTE_STATUS_F ="F";//失败
    public static final String ROUTE_STATUS_D ="D";//待发起路由
    public static final String ROUTE_STATUS_T ="T";//路由完毕待通知API

    public static final String EVENT_CODE_TN ="TN";//表内事件码
    public static final String EVENT_CODE_TA ="TA";//表外事件码

    //联合贷文件名
    public static final String DAY_ORDER_FILE_NAME = "loan_init";//联合贷日初(借据)信息文件
    public static final String DAY_PLAN_FILE_NAME = "instmnt_init";//联合贷日初(分期)信息文件
    public static final String LOAN_ORDER_FILE_NAME = "loan_detail";//联合贷放款(借据)明细文件
    public static final String LOAN_PLAN_FILE_NAME = "repay_plan";//联合贷放款(分期)明细文件
    public static final String REPAY_ORDER_FILE_NAME = "repay_loan_detail";//联合贷还款(借据)明细文件
    public static final String REPAY_PLAN_FILE_NAME = "repay_instmnt_detail";//联合贷还款(分期)明细文件
    public static final String TRANS_FILE_NAME = "arg_status_change";//联合贷借据形态转移流水文件
    public static final String INTR_FILE_NAME = "interest_accrual";//联合贷利息计提明细文件
    public static final String ACCOUNTING_FILE_NAME = "accounting_flow";//联合贷会计分录流水文件


    public static final String BANK_INVESTOR_ID ="000001";//本行的出资方id

    // 授信审批模式
    public static final String CREDIT_APPROVE_FLAG_1 ="1";//无需审批
    public static final String CREDIT_APPROVE_FLAG_2 ="2";//需要审批

    // 借款审批模式
    public static final String LOAN_APPROVE_FLAG_1 ="1";//无需审批
    public static final String LOAN_APPROVE_FLAG_2 ="2";//需要审批

    // 额度状态
    public static final String LIMIT_STATUS_0 ="0";// 失效
    public static final String LIMIT_STATUS_1 ="1";// 正常
    public static final String LIMIT_STATUS_2 ="2";// 冻结

    // 合作行审批状态
    public static final String APPROVE_STATUS_S ="S";// 成功
    public static final String APPROVE_STATUS_F ="F";// 失败
    public static final String APPROVE_STATUS_O ="O";// 已发起，结果待查询

    // 冻结/解冻操作类型
    public static final String FREEZE_OPTION_TYPE_01 = "01";//冻结
    public static final String FREEZE_OPTION_TYPE_02 = "02";//修改
    public static final String FREEZE_OPTION_TYPE_03 = "03";//解冻

    // 限制状态
    public static final String RESTRAINT_STATUS_0 = "0";// 冻结失败
    public static final String RESTRAINT_STATUS_1 = "1";// 冻结成功
    public static final String RESTRAINT_STATUS_2 = "2";// 解冻失败
    public static final String RESTRAINT_STATUS_3 = "3";// 解冻成功

    // 转账类型
    public static final String TRANSFER_TYPE_1 = "1"; // 联合贷贷款转账
    public static final String TRANSFER_TYPE_2 = "2"; // 联合贷转账冲正
    public static final String TRANSFER_TYPE_3 = "3"; // 联合贷还款转账

    // 借贷方
    public static final String CR_DR_IND_D = "D"; // 借方
    public static final String CR_DR_IND_C = "C"; // 贷方

    // 资金归集处理结果
    public static final String DEAL_RESULT_S = "S"; // 成功
    public static final String DEAL_RESULT_D = "D"; // 处理中
    public static final String DEAL_RESULT_F = "F"; // 失败

    // 出资方额度使用结果
    public static final String USE_RESULT_S = "S"; // 成功
    public static final String USE_RESULT_F = "F"; // 失败

    // 网关返回的业务结果
    public static final String DEAL_STATE_S = "S"; // 成功

    //还款计划计算方式
    public static final String PLAN_OPTION_01 = "01";//01 日对日按月，否则按日
    public static final String PLAN_OPTION_02 = "02";//02 按日计息
    public static final String PLAN_OPTION_03 = "03";//03 按月计息

    //首期计算方式
    public static final String FIRST_PAYMENT_OPTION_01 = "01";//01 日对日按月，否则按日
    public static final String FIRST_PAYMENT_OPTION_02 = "02";//02 按日计息
    public static final String FIRST_PAYMENT_OPTION_03 = "03";//03 按月计息
}


